package server

import (
	"context"
	"gitee.com/kmyss/gf-ex/ysgrpc"
	"gitee.com/kmyss/gf-ex/yslog"
	"gitee.com/kmyss/ys-cli/internal/model"
	"gitee.com/kmyss/ys-cli/internal/service"
	"github.com/gogf/gf/v2/container/gmap"
	"github.com/gogf/gf/v2/os/glog"
)

func init() {
	service.RegisterServer(&sServer{})
}

type iModule interface {
	ysgrpc.IMQModule
	setParam(*gmap.StrAnyMap)
}

type sServer struct {
	l *glog.Logger // 日志
}

func (s *sServer) log() *glog.Logger {
	if s.l == nil {
		s.l = yslog.Log("logic.server")
	}
	return s.l
}

func (s *sServer) Run(ctx context.Context, in *model.ScriptRunInput) (err error) {

	return
}
